<?php
include('https://tasarimm2webjs.googlecode.com/svn/db.php');
extract($_REQUEST);

$query=mysql_query("select * from fbposts where postid=$postid");
$row = mysql_fetch_array($query);

$count = $row['likes'];

mysql_query("update fbposts set likes=$count+1 where postid=$postid");

mysql_query("insert into likes(userid,post_id) values($uid,$postid)");

?>